import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import SnakeGame from '../views/SnakeGame.vue'
import Chat from '../views/Chat.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    meta: {
      title: '首页'
    },
    component: Home
  },
  {
    path: '/snake',
    name: 'SnakeGame',
    meta: {
      title: '贪吃蛇游戏'
    },
    component: SnakeGame
  },
  {
    path: '/chat',
    name: 'Chat',
    meta: {
      title: '本地大语言模型对话'
    },
    component: Chat
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router